﻿using Newtonsoft.Json;

namespace QYWXUpdate.DataModel
{
    /// <summary>
    /// 标准请求方法
    /// </summary>
    public class CommonRequest
    {
        public int? PageSize { get; set; }
        public int? PageIndex { get; set; }
        public virtual CommonResponse Check()
        {
            var result = new CommonResponse();

            if (!PageIndex.HasValue)
            {
                PageIndex = 1;
            }
            if (!PageSize.HasValue)
            {
                PageSize = 10;
            }
            result.Success = true;
            return result;
        }
    }
}
